﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="EditTicket.aspx.cs" Inherits="eproject_BusTicketOnline.EditTicket" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>Update Ticket:&nbsp;&nbsp;
                <asp:Label ID="lblBuslicketId" runat="server"></asp:Label>
            </p>
    <p>Old Ticket Detail:</p>
    <table style="border-style: groove; width: 100%">
        <tr>
            <td style="width: 159px">
                Bus Id:</td>
            <td style="width: 481px">
                <asp:Label ID="lblOldBusId" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 159px">
                Payer Name:</td>
            <td style="width: 481px">
                <asp:Label ID="lblOldPayer" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 159px">
                Passenger Name:</td>
            <td style="width: 481px">
                <asp:Label ID="lblOldPassenger" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 159px">
                Age of passenger:</td>
            <td style="width: 481px">
                <asp:Label ID="lblOldAgePasssenger" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 159px">
                &nbsp;</td>
            <td style="width: 481px">
                <asp:Button ID="btnDeactive" runat="server" onclick="btnDeactive_Click" 
                    Text="Deactive Ticket" ValidationGroup="1" />
            </td>
        </tr>
    </table>
    <p>Update Ticket:</p>
    <table style="border-style: groove; width: 100%; line-height: normal;">
        <tr>
            <td style="width: 195px">
                Bus Id:</td>
            <td style="width: 267px">
                <asp:DropDownList ID="ddlBusId" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlBusId_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td style="width: 100px" >
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 195px">
                Payer Name:</td>
            <td style="width: 267px">
                <asp:DropDownList ID="ddlFullname" runat="server">
                </asp:DropDownList>
                <asp:Label ID="lblMemberId" runat="server" Visible="False"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 195px">
                Place to Place:</td>
            <td style="width: 267px">
                <asp:Label ID="lblDeparturePlace" runat="server"></asp:Label>
                -<asp:Label ID="lblArrivePlace" runat="server"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 195px">
                Day to Day:</td>
            <td style="width: 267px">
                <asp:Label ID="lblStartDay" runat="server"></asp:Label>
                -<asp:Label ID="lblEndDay" runat="server"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 195px">
                Time:</td>
            <td style="width: 267px">
                <asp:Label ID="lblTime" runat="server"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 195px">
                Price(not contain fee of age):</td>
            <td style="width: 267px">
                <asp:Label ID="lblPrice" runat="server"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 195px">
                Passenger Name:</td>
            <td style="width: 267px">
                <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
            </td>
            <td style="width: 449px" >
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtFullName" Display="Dynamic" 
                    ErrorMessage="Please input name !" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToValidate="txtFullName" ErrorMessage="Name not valid !" ForeColor="Red" 
                    Operator="DataTypeCheck" Display="Dynamic"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 195px">
                Age of passenger:</td>
            <td style="width: 267px">
                <asp:DropDownList ID="ddlAge" runat="server">
                    <asp:ListItem>Less 5 year old</asp:ListItem>
                    <asp:ListItem>From 5 to 12</asp:ListItem>
                    <asp:ListItem>From 13 to 50</asp:ListItem>
                    <asp:ListItem>Above 50</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width: 449px" >
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 195px">
                &nbsp;</td>
            <td style="width: 267px">
                <asp:Button ID="Button1" runat="server" Text="Update Ticket" 
                    onclick="Button1_Click" ValidationGroup="2" />
            </td>
            <td style="width: 449px" >
                &nbsp;</td>
        </tr>
    </table>
    </asp:Content>
